﻿using System;
using System.Collections;

namespace 简繁转换
{
    class Program
    {
        private const string jian = ("我爱你");
        private const string fan = ("我愛伱");
        static void Main(string[] args)
        {
            Hashtable ht = new Hashtable();

                for (int i = 0; i < jian.Length; i++)
                {
                    ht.Add(jian[i], fan[i]);
                }
                Console.WriteLine("请输入简体字");
                string str = Console.ReadLine();
                for (int i = 0; i < str.Length; i++)
                {
                    if (ht.ContainsKey(str[i]))
                    {
                        Console.Write(ht[str[i]]);
                    }
                    else
                    {
                        Console.WriteLine(str[i]);
                    }
                }
            
        }

    }
}
